package com.example.game;
// StringLengthComparator.java
import java.util.Comparator;

import android.graphics.Point;

public class EatComparator implements Comparator<Point>
{
    @Override
    public int compare(Point m1, Point m2)
    {
        // Assume neither string is null. Real code should
        // probably be more robust
        if (m1.y > m2.y)
        {
            return -1;
        }
        if (m1.y < m2.y)
        {
            return 1;
        }
        return 0;
    }
}